package types;

import control.WordInfo;

public class SubstantivoSimple {
	private WordInfo art = null;
	private WordInfo sub = null;
	private WordInfo adj = null;
	
	public SubstantivoSimple() {
		
	}
	
	public SubstantivoSimple(WordInfo _sub, WordInfo _adj) {
		sub = _sub;
		adj = _adj;
	}
	
	public void setArt(WordInfo art) {
		this.art = art;
	}
	public WordInfo getArt() {
		return art;
	}
	public void setSub(WordInfo sub) {
		this.sub = sub;
	}
	public WordInfo getSub() {
		return sub;
	}
	public void setAdj(WordInfo adj) {
		this.adj = adj;
	}
	public WordInfo getAdj() {
		return adj;
	}
	
	public String toString() {
		String ret = "";
		
		if (art != null) {
			ret += art.toString() + " ";
		}
		if (sub != null) {
			ret += sub.toString() + " ";
		}
		if (adj != null) {
			ret += adj.toString() + " ";
		}
		
		ret = ret.substring(0, ret.length() - 1);
		
		return ret;
	}
}
